from core.basic.mcharacter import Character
from core.basic.mequment import equipment


def seal_1(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：物理攻击力
    - 类型：普通属性
    - 部位：武器
    """
    if mode == 0:
        num = int(eq.lv *0.1 + 1.5)
        char.SetStatus(物攻=num)
        pass
    if mode == 1:
        pass
    pass


def seal_2(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：魔法攻击力
    - 类型：普通属性
    - 部位：武器
    """
    if mode == 0:
        num = int(eq.lv *0.1 + 1.5)
        char.SetStatus(魔攻=num)
        pass
    if mode == 1:
        pass
    pass


def seal_3(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：火属性强化
    - 类型：普通属性
    - 部位：首饰
    """
    if mode == 0:
        char.SetStatus(火强=3)
        pass
    if mode == 1:
        pass
    pass


def seal_4(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：冰属性强化
    - 类型：普通属性
    - 部位：首饰
    """
    if mode == 0:
        char.SetStatus(冰强=3)
        pass
    if mode == 1:
        pass
    pass


def seal_5(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：光属性强化
    - 类型：普通属性
    - 部位：首饰
    """
    if mode == 0:
        char.SetStatus(光强=3)
        pass
    if mode == 1:
        pass
    pass


def seal_6(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：暗属性强化
    - 类型：普通属性
    - 部位：首饰
    """
    if mode == 0:
        char.SetStatus(暗强=3)
        pass
    if mode == 1:
        pass
    pass


def seal_7(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：力量
    - 类型：普通属性
    - 部位：武器,首饰,防具
    """
    if mode == 0:
        num = int(eq.lv *0.3 + 0.5)
        char.SetStatus(力量=num)
        pass
    if mode == 1:
        pass
    pass


def seal_8(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：智力
    - 类型：普通属性
    - 部位：武器,首饰,防具
    """
    if mode == 0:
        num = int(eq.lv * 0.3 + 0.5)
        char.SetStatus(智力=num)
        pass
    if mode == 1:
        pass
    pass


def seal_9(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：体力
    - 类型：普通属性
    - 部位：武器,首饰,防具
    """
    if mode == 0:
        num = int(eq.lv * 0.3 + 0.5)
        char.SetStatus(体力=num)
        pass
    if mode == 1:
        pass
    pass


def seal_10(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：精神
    - 类型：普通属性
    - 部位：武器,首饰,防具
    """
    if mode == 0:
        num = int(eq.lv * 0.3 + 0.5)
        char.SetStatus(精神=num)
        pass
    if mode == 1:
        pass
    pass


def seal_11(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：物理暴击
    - 类型：普通属性
    - 部位：防具
    """
    if mode == 0:
        num = int(eq.lv * 0.2)
        char.SetStatus(物暴=num)
        pass
    if mode == 1:
        pass
    pass


def seal_12(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：魔法暴击
    - 类型：普通属性
    - 部位：防具
    """
    if mode == 0:
        num = int(eq.lv * 0.2)
        char.SetStatus(魔暴=num)
        pass
    if mode == 1:
        pass
    pass


def seal_13(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：攻击速度
    - 类型：普通属性
    - 部位：武器,首饰,防具
    """
    if mode == 0:
        char.SetStatus(攻速=0.008)
        pass
    if mode == 1:
        pass
    pass


def seal_14(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：施放速度
    - 类型：普通属性
    - 部位：武器,首饰,防具
    """
    if mode == 0:
        char.SetStatus(攻速=0.01)
        pass
    if mode == 1:
        pass
    pass


def seal_15(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：移动速度
    - 类型：普通属性
    - 部位：武器,首饰,防具
    """
    if mode == 0:
        char.SetStatus(攻速=0.008)
        pass
    if mode == 1:
        pass
    pass


def seal_16(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：火属性抗性
    - 类型：普通属性
    - 部位：首饰
    """
    if mode == 0:
        char.SetStatus(火抗=3)
        pass
    if mode == 1:
        pass
    pass


def seal_17(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：冰属性抗性
    - 类型：普通属性
    - 部位：首饰
    """
    if mode == 0:
        char.SetStatus(冰抗=3)
        pass
    if mode == 1:
        pass
    pass


def seal_18(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：光属性抗性
    - 类型：普通属性
    - 部位：首饰
    """
    if mode == 0:
        char.SetStatus(冰抗=3)
        pass
    if mode == 1:
        pass
    pass


def seal_19(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：暗属性抗性
    - 类型：普通属性
    - 部位：首饰
    """
    if mode == 0:
        char.SetStatus(冰抗=3)
        pass
    if mode == 1:
        pass
    pass


def seal_20(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：生命值上限
    - 类型：普通属性
    - 部位：武器,首饰,防具
    """
    if mode == 0:
        pass
    if mode == 1:
        pass
    pass


def seal_21(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：魔法值上限
    - 类型：普通属性
    - 部位：武器,首饰,防具
    """
    if mode == 0:
        pass
    if mode == 1:
        pass
    pass


def seal_22(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：物理防御力
    - 类型：普通属性
    - 部位：武器,首饰,防具
    """
    if mode == 0:
        pass
    if mode == 1:
        pass
    pass


def seal_23(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：魔法防御力
    - 类型：普通属性
    - 部位：武器,首饰,防具
    """
    if mode == 0:
        pass
    if mode == 1:
        pass
    pass


def seal_24(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：命中
    - 类型：普通属性
    - 部位：武器,首饰,防具
    """
    if mode == 0:
        pass
    if mode == 1:
        pass
    pass


def seal_25(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：回避
    - 类型：普通属性
    - 部位：武器,首饰,防具
    """
    if mode == 0:
        pass
    if mode == 1:
        pass
    pass


def seal_31(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：伤害增加
    - 类型：特性属性
    - 部位：武器
    """
    if mode == 0:
        char.SetStatus(黄字=0.05)
        pass
    if mode == 1:
        pass
    pass


def seal_35(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：全部职业50级技能等级 +1 (特性技能除外)
    - 类型：特性属性
    - 部位：武器
    """
    if mode == 0:
        char.AddSkillLv(50,50, 1)
        pass
    if mode == 1:
        pass
    pass


def seal_36(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：火属性强化
    - 类型：特性属性
    - 部位：武器
    """
    if mode == 0:
        num = int(0.1*eq.lv + 2.5)
        char.SetStatus(火强=num)
        pass
    if mode == 1:
        pass
    pass


def seal_37(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：冰属性强化
    - 类型：特性属性
    - 部位：武器,首饰
    """
    if mode == 0:
        num = int(0.1*eq.lv + 2.5)
        char.SetStatus(冰强=num)
        pass
    if mode == 1:
        pass
    pass


def seal_38(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：光属性强化
    - 类型：特性属性
    - 部位：武器,首饰
    """
    if mode == 0:
        num = int(0.1*eq.lv + 2.5)
        char.SetStatus(光强=num)
        pass
    if mode == 1:
        pass
    pass


def seal_39(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：暗属性强化
    - 类型：特性属性
    - 部位：武器,首饰
    """
    if mode == 0:
        num = int(0.1*eq.lv + 2.5)
        char.SetStatus(暗强=num)
        pass
    if mode == 1:
        pass
    pass


def seal_40(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：力量
    - 类型：特性属性
    - 部位：武器,首饰,防具
    """
    if mode == 0:
        num = int(eq.lv *0.6 + 1)
        char.SetStatus(力量=num)
        pass
    if mode == 1:
        pass
    pass


def seal_41(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：智力
    - 类型：特性属性
    - 部位：武器,首饰,防具
    """
    if mode == 0:
        num = int(eq.lv *0.6 + 1)
        char.SetStatus(智力=num)
        pass
    if mode == 1:
        pass
    pass


def seal_42(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：物理攻击力
    - 类型：特性属性
    - 部位：武器
    """
    if mode == 0:
        # 数据量不够 50级开始：[12,14,15,16]
        num = int(eq.lv *0.255 + 1)
        char.SetStatus(物攻=num)
        pass
    if mode == 1:
        pass
    pass


def seal_43(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：魔法攻击力
    - 类型：特性属性
    - 部位：武器
    """
    if mode == 0:
        # 数据量不够 50级开始：[12,14,15,16]
        num = int(eq.lv *0.255 + 1)
        char.SetStatus(魔攻=num)
        pass
    if mode == 1:
        pass
    pass


def seal_44(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：物理暴击
    - 类型：特性属性
    - 部位：防具
    """
    if mode == 0:
        num = int(eq.lv * 0.3 + 5.5)
        char.SetStatus(物暴=num)
        pass
    if mode == 1:
        pass
    pass


def seal_45(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：魔法暴击
    - 类型：特性属性
    - 部位：防具
    """
    if mode == 0:
        num = int(eq.lv * 0.3 + 5.5)
        char.SetStatus(魔暴=num)
        pass
    if mode == 1:
        pass
    pass


def seal_46(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：体力
    - 类型：特性属性
    - 部位：防具,首饰
    """
    if mode == 0:
        num = int(eq.lv *0.6 + 1)
        char.SetStatus(体力=num)
        pass
    if mode == 1:
        pass
    pass


def seal_47(char: Character, eq: equipment = None, mode=0):
    """
    - 属性：精神
    - 类型：特性属性
    - 部位：防具,首饰
    """
    if mode == 0:
        num = int(eq.lv *0.6 + 1)
        char.SetStatus(精神=num)
        pass
    if mode == 1:
        pass
    pass
